package com.example.deal.config;

import org.springframework.stereotype.Component;

import com.example.deal.broker.entity.Deal;

@Component
public class HystrixFallBackMethod implements FeignConfig {
	@Override
	public Deal findById(Long id) {
		Deal deal = new Deal();
		deal.setId(id.intValue());
		deal.setName("FallBack");
		return deal;
	}

}
